﻿using AppSocketModel;
using BCGPSCommon;

namespace AppSocketService.Company
{
    /// <summary>
    /// 公司
    /// </summary>
    public interface ICompanyService
    {
        /// <summary>
        /// 添加公司
        /// </summary>
        /// <param name="companyRequestDto"></param>
        /// <returns></returns>
        CompanyDto AddNew(CompanyRequestDto companyRequestDto);
        /// <summary>
        /// 获取公司
        /// </summary>
        /// <param name="companyId"></param>
        /// <returns></returns>
        CompanyDto Get(int companyId);
        /// <summary>
        /// 获取公司
        /// </summary>
        /// <param name="AccountRegisterCode"></param>
        /// <param name="companyName"></param>
        /// <returns></returns>
        CompanyDto GetCompany(string AccountRegisterCode, string companyName);
        /// <summary>
        /// 修改公司
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        CompanyDto Update(CompanyDto dto);

        /// <summary>
        /// 获取公司列表
        /// </summary>
        /// <param name="companyName"></param>
        /// <param name="desc"></param>
        /// <param name="index"></param>
        /// <param name="size"></param>
        /// <returns></returns>
        PageableList<CompanyDto> GetList(string companyName, bool desc, int index, int size);

        /// <summary>
        /// 删除公司
        /// </summary>
        /// <param name="companyId"></param>
        /// <returns></returns>
        bool Delete(int companyId);
    }
}